<?php
include_once('config/config.php');

// 检查是否退出
if (isset($_GET['action']) && $_GET['action'] === 'logout') {

    setcookie('admin', '', time() - 1);

    notice('退出成功', 'login.php');
}

// 检查登录数据合法
$admin = LoginCheck();

?>


<!DOCTYPE html>

<html lang="en">

<head>

    <!-- 引入meta设置 -->
    <?php include_once("./common/meta.php") ?>

</head>

<!--[if lt IE 7 ]> <body class="ie ie6"> <![endif]-->
<!--[if IE 7 ]> <body class="ie ie7 "> <![endif]-->
<!--[if IE 8 ]> <body class="ie ie8 "> <![endif]-->
<!--[if IE 9 ]> <body class="ie ie9 "> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!-->

<body>

    <!-- 引入header -->
    <?php include_once("./common/header.php") ?>

    <!-- 引入menu -->
    <?php include_once("./common/menu.php") ?>

    <div class="content">
        <div class="header">
            <h1 class="page-title">后台首页</h1>
        </div>
        <ul class="breadcrumb">
            <li><a href="index.php">Home</a> <span class="divider">/</span></li>
            <li class="active">Index</li>
        </ul>
        <div class="container-fluid">
            <div class="row-fluid">
                <!-- 引入footer -->
                <?php include_once("./common/footer.php") ?>
            </div>
        </div>
    </div>

</body>

</html>